public static ServiceProfile createProfile( MetadataStore<?> store ) { LOG.info( "Create profile for store with type " + store.getType() ); if ( "iso".equals( store.getType() ) ) { return new CommonCSWProfile(); } if ( "ebrimeo".equals( store.getType() ) ) { return new EbrimProfile(); } throw new IllegalArgumentException( "Unknown store type '" + store.getType() + "'" ); }