private void initialize() throws GroupsException {
        String eMsg = null;
        String svcName = getServiceDescriptor().getName();
        if (log.isDebugEnabled()) log.debug("Service descriptor attributes: " + svcName);

        // print service descriptor attributes:
        for (Iterator i = getServiceDescriptor().keySet().iterator(); i.hasNext(); ) {
            String descriptorKey = (String) i.next();
            Object descriptorValue = getServiceDescriptor().get(descriptorKey);
            if (descriptorValue != null) {
                if (log.isDebugEnabled()) log.debug("  " + descriptorKey + " : " + descriptorValue);
            }
        }

        String groupStoreFactoryName = getServiceDescriptor().getGroupStoreFactoryName();
        String entityStoreFactoryName = getServiceDescriptor().getEntityStoreFactoryName();
        String entitySearcherFactoryName = getServiceDescriptor().getEntitySearcherFactoryName();

        if (groupStoreFactoryName == null) {
            if (log.isInfoEnabled()) {
                log.info(
                        "ReferenceGroupService.initialize(): ("
                                + svcName
                                + ") No Group Store factory specified in service descriptor.");
            }
        } else {
            try {
                IEntityGroupStoreFactory groupStoreFactory =
                        (IEntityGroupStoreFactory)
                                Class.forName(groupStoreFactoryName).newInstance();
                groupFactory = groupStoreFactory.newGroupStore(getServiceDescriptor());
            } catch (Exception e) {
                eMsg =
                        "ReferenceIndividualGroupService.initialize(): Failed to instantiate group store ("
                                + svcName
                                + "): "
                                + e;
                log.error(eMsg);
                throw new GroupsException(eMsg, e);
            }
        }

        if (entityStoreFactoryName == null) {
            if (log.isInfoEnabled())
                log.info(
                        "ReferenceIndividualGroupService.initialize(): "
                                + "No Entity Store Factory specified in service descriptor ("
                                + svcName
                                + ")");
        } else {
            try {
                IEntityStoreFactory entityStoreFactory =
                        (IEntityStoreFactory) Class.forName(entityStoreFactoryName).newInstance();
                entityFactory = entityStoreFactory.newEntityStore();
            } catch (Exception e) {
                eMsg =
                        "ReferenceIndividualGroupService.initialize(): Failed to instantiate entity store "
                                + e;
                log.error(eMsg);
                throw new GroupsException(eMsg, e);
            }
        }

        if (entitySearcherFactoryName == null) {
            if (log.isInfoEnabled())
                log.info(
                        "ReferenceIndividualGroupService.initialize(): "
                                + "No Entity Searcher Factory specified in service descriptor.");
        } else {
            try {
                IEntitySearcherFactory entitySearcherFactory =
                        (IEntitySearcherFactory)
                                Class.forName(entitySearcherFactoryName).newInstance();
                entitySearcher = entitySearcherFactory.newEntitySearcher();
            } catch (Exception e) {
                eMsg =
                        "ReferenceIndividualGroupService.initialize(): Failed to instantiate entity searcher "
                                + e;
                log.error(eMsg);
                throw new GroupsException(eMsg, e);
            }
        }
    }
private void initialize ( ) throws GroupsException { String eMsg = null ; String svcName = getServiceDescriptor ( ) . getName ( ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Service descriptor attributes: " + svcName ) ; for ( Iterator i = getServiceDescriptor ( ) . keySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { String descriptorKey = ( String ) i . next ( ) ; Object descriptorValue = getServiceDescriptor ( ) . get ( descriptorKey ) ; if ( descriptorValue != null ) { if ( log . isDebugEnabled ( ) ) log . debug ( "  " + descriptorKey + " : " + descriptorValue ) ; } } String groupStoreFactoryName = getServiceDescriptor ( ) . getGroupStoreFactoryName ( ) ; String entityStoreFactoryName = getServiceDescriptor ( ) . getEntityStoreFactoryName ( ) ; String entitySearcherFactoryName = getServiceDescriptor ( ) . getEntitySearcherFactoryName ( ) ; if ( groupStoreFactoryName == null ) { if ( log . isInfoEnabled ( ) ) { log . info ( "ReferenceGroupService.initialize(): (" + svcName + ") No Group Store factory specified in service descriptor." ) ; } } else { try { IEntityGroupStoreFactory groupStoreFactory = ( IEntityGroupStoreFactory ) Class . forName ( groupStoreFactoryName ) . newInstance ( ) ; groupFactory = groupStoreFactory . newGroupStore ( getServiceDescriptor ( ) ) ; } catch ( Exception e ) { eMsg = "ReferenceIndividualGroupService.initialize(): Failed to instantiate group store (" + svcName + "): " + e ; log . error ( eMsg ) ; throw new GroupsException ( eMsg , e ) ; } } if ( entityStoreFactoryName == null ) { if ( log . isInfoEnabled ( ) ) log . info ( "ReferenceIndividualGroupService.initialize(): " + "No Entity Store Factory specified in service descriptor (" + svcName + ")" ) ; } else { try { IEntityStoreFactory entityStoreFactory = ( IEntityStoreFactory ) Class . forName ( entityStoreFactoryName ) . newInstance ( ) ; entityFactory = entityStoreFactory . newEntityStore ( ) ; } catch ( Exception e ) { eMsg = "ReferenceIndividualGroupService.initialize(): Failed to instantiate entity store " + e ; log . error ( eMsg ) ; throw new GroupsException ( eMsg , e ) ; } } if ( entitySearcherFactoryName == null ) { if ( log . isInfoEnabled ( ) ) log . info ( "ReferenceIndividualGroupService.initialize(): " + "No Entity Searcher Factory specified in service descriptor." ) ; } else { try { IEntitySearcherFactory entitySearcherFactory = ( IEntitySearcherFactory ) Class . forName ( entitySearcherFactoryName ) . newInstance ( ) ; entitySearcher = entitySearcherFactory . newEntitySearcher ( ) ; } catch ( Exception e ) { eMsg = "ReferenceIndividualGroupService.initialize(): Failed to instantiate entity searcher " + e ; log . error ( eMsg ) ; throw new GroupsException ( eMsg , e ) ; } } }
@exception GroupsException