agave-common/common-core/src/main/java/org/iplantc/service/common/discovery/ServiceCapabilityConfiguration.java
/**
	 * Reads in a JSON Array of serialized {@link DiscoverableService}s from a file named
	 * capabilities.json 
	 */
Reads in a JSON Array of serialized  DiscoverableServices from a file named
capabilities.json
Reads in a JSON Array of serialized DiscoverableServices from a file named capabilities . json
private void readCapabilitiesFromEnvironment() {
		Map<String, String> env = System.getenv();
		for(String key: env.keySet()) {
			if (key.equalsIgnoreCase("capabilities")) {
				for(String capability: env.get(key).split(",")) 
				{
					getLocalCapabilities().add(ServiceCapabilityFactory.getInstance(capability));
				}
			}
		}
	}
private void readCapabilitiesFromEnvironment ( ) { Map < String , String > env = System . getenv ( ) ; for ( String key : env . keySet ( ) ) { if ( key . equalsIgnoreCase ( "capabilities" ) ) { for ( String capability : env . get ( key ) . split ( "," ) ) { getLocalCapabilities ( ) . add ( ServiceCapabilityFactory . getInstance ( capability ) ) ; } } } }
Reads in a JSON Array of serialized {@link DiscoverableService}s from a file named
 capabilities.json
Reads in a JSON Array of serialized { @link DiscoverableService } s from a file named capabilities . json