public static function getAppDeploymentData()
 {
     $appDeployments = Airavata::getAllApplicationDeployments(Session::get('authz-token'), Session::get("gateway_id"));
     //var_dump( $appDeployments); exit;
     $computeResources = Airavata::getAllComputeResourceNames(Session::get('authz-token'));
     $modules = AppUtilities::getAllModules();
     $apt = new ApplicationParallelismType();
     return array("appDeployments" => $appDeployments, "applicationParallelismTypes" => $apt::$__names, "computeResources" => $computeResources, "modules" => $modules);
 }
public static function getBrowseCRData(){
	$appDeployments = Airavata::getAllApplicationDeployments( Session::get("gateway_id"));

    return array( 'crObjects' => CRUtilities::getAllCRObjects(true),
    			  'appDeployments' => $appDeployments 
    			);
}
 public static function getBrowseCRData($onlyNames)
 {
     $appDeployments = Airavata::getAllApplicationDeployments(Session::get('authz-token'), Session::get("gateway_id"));
     return array('crObjects' => CRUtilities::getAllCRObjects($onlyNames), 'appDeployments' => $appDeployments);
 }