public void addEmptyConfigs(Map<String, List<String>> pidToMethodList) {
        Iterator<String> pIter = pidToMethodList.keySet().iterator();
        while (pIter.hasNext()) {
            String sDepPID = pIter.next();
            // add the sDep indicated by the key if it doesn't exist
            ServiceDeploymentRoleConfig sDepRoleConfig = m_sDepConfigs.get(sDepPID);
            if (sDepRoleConfig == null) {
                sDepRoleConfig =
                        new ServiceDeploymentRoleConfig(m_defaultConfig, sDepPID);
                m_sDepConfigs.put(sDepPID, sDepRoleConfig);
            }
            // add each method indicated by the List which doesn't already exist
            Iterator<String> mIter = pidToMethodList.get(sDepPID).iterator();
            while (mIter.hasNext()) {
                String methodName = (String) mIter.next();
                MethodRoleConfig methodRoleConfig =
                        sDepRoleConfig.getMethodConfigs().get(methodName);
                if (methodRoleConfig == null) {
                    methodRoleConfig =
                            new MethodRoleConfig(sDepRoleConfig, methodName);
                    sDepRoleConfig.getMethodConfigs().put(methodName,
                                                           methodRoleConfig);
                }
            }
        }
    }
public void addEmptyConfigs ( Map < String , List < String > > pidToMethodList ) { Iterator < String > pIter = pidToMethodList . keySet ( ) . iterator ( ) ; while ( pIter . hasNext ( ) ) { String sDepPID = pIter . next ( ) ; ServiceDeploymentRoleConfig sDepRoleConfig = m_sDepConfigs . get ( sDepPID ) ; if ( sDepRoleConfig == null ) { sDepRoleConfig = new ServiceDeploymentRoleConfig ( m_defaultConfig , sDepPID ) ; m_sDepConfigs . put ( sDepPID , sDepRoleConfig ) ; } Iterator < String > mIter = pidToMethodList . get ( sDepPID ) . iterator ( ) ; while ( mIter . hasNext ( ) ) { String methodName = ( String ) mIter . next ( ) ; MethodRoleConfig methodRoleConfig = sDepRoleConfig . getMethodConfigs ( ) . get ( methodName ) ; if ( methodRoleConfig == null ) { methodRoleConfig = new MethodRoleConfig ( sDepRoleConfig , methodName ) ; sDepRoleConfig . getMethodConfigs ( ) . put ( methodName , methodRoleConfig ) ; } } } }
Add empty sDep and method configurations given by the map if they are
not already already defined.