code: public Application createApplication( String applicationName, String templateName, String templateQualifier )
  	throws ManagementWsException {
  
  		this.logger.finer( "Creating application " + applicationName + " from " + templateName + " - " + templateQualifier + "..." );
  		ApplicationTemplate tpl = new ApplicationTemplate( templateName ).version( templateQualifier );
  		Application app = new Application( applicationName, tpl );
  
  		WebResource path = this.resource.path( UrlConstants.APPLICATIONS );
  		ClientResponse response = this.wsClient.createBuilder( path )
  				.type( MediaType.APPLICATION_JSON )
  				.post( ClientResponse.class, app );
  
  		if( Family.SUCCESSFUL != response.getStatusInfo().getFamily())
  			throw new ManagementWsException( response.getStatusInfo().getStatusCode(), "" );
  
  		Application result = response.getEntity( Application.class );
  		return result;
  	}
docs: Creates an application from a template.
  @param applicationName the application name
  @param templateName the template's name
  @param templateQualifier the template's qualifier
  @return the created application
  @throws ManagementWsException if a problem occurred with the applications management