ExtensionRegistry { static List<String> analyzeString(String activities) { List<String> basicActivities = new ArrayList<String>(); Scanner scanner = new Scanner(activities); try { scanner.useDelimiter(","); while (scanner.hasNext()) { basicActivities.add(scanner.next().trim()); } } finally { scanner.close(); } return basicActivities; } private  ExtensionRegistry(); static void loadRegistry(URL configurationFileURL,
			boolean ignoreOnNotFound); static IBPELDeployer createNewDeployerForType(String type); static ISOAPEncoder createNewEncoderForType(String styleEncoding); static IHeaderProcessor createNewHeaderProcessorForType(String type); static IDataSource createNewDataSourceForType(String type); static void loadDeploymentConfiguration(URL fileURL); static void configure(String deployerID, IBPELDeployer deployer); static Map<String, String> getGlobalConfigurationForDeployer(
			IBPELDeployer deployer); static void configureDeployer(IBPELDeployer deployer,
			Map<String, String> options); static Collection<String> getPossibleConfigurationOptions(
			Class<? extends IBPELDeployer> deployerClass, boolean forSuite); static Map<String, IBPELDeployerOption> getConfigurationAnnotations(
			Class<? extends IBPELDeployer> deployerClass, boolean forSuite); static String getDefaultValueFor(
			Class<? extends IBPELDeployer> deployer,
			String configurationParameter); static Map<String, ConfigurationOption> getConfigurationAnnotations(
			Class<? extends IDataSource> dsClass);  }
@Test public void testAnalyzeString() throws Exception { assertArrayEquals(new String[] { "a" }, ExtensionRegistry.analyzeString("a").toArray(new String[0])); assertArrayEquals(new String[] { "a", "b" }, ExtensionRegistry.analyzeString("a,b").toArray(new String[0])); assertArrayEquals(new String[] { "a", "b", "c" }, ExtensionRegistry.analyzeString("a,b,c").toArray(new String[0])); assertArrayEquals(new String[] { "a", "b", "c" }, ExtensionRegistry.analyzeString(" a , b , c ").toArray(new String[0])); }