code: public int addApp(ApplicationCreate app) {
  		return getResourceFactory().getApiResource("/app/")
  				.entity(app, MediaType.APPLICATION_JSON_TYPE)
  				.post(ApplicationCreateResponse.class).getId();
  	}
docs: Creates a new app on a space.
  
  @param app
  The definition for the new app
  @return The id of the newly created app