private <M extends ConfigurationClient,P>ManagedObject<M> createNewManagedObject(ManagedObjectDefinition<M,?> d,ManagedObjectPath<M,?> p,PropertyDefinition<P> namingPropertyDefinition,String name,Collection<PropertyException> exceptions){
  PropertySet childProperties=new PropertySet();
  for (  PropertyDefinition<?> pd : d.getAllPropertyDefinitions()) {
    try {
      createProperty(childProperties,p,pd);
    }
 catch (    PropertyException e) {
      if (exceptions != null) {
        exceptions.add(e);
      }
    }
  }
  if (namingPropertyDefinition != null) {
    P value=namingPropertyDefinition.decodeValue(name);
    childProperties.setPropertyValues(namingPropertyDefinition,Collections.singleton(value));
  }
  return newInstance(d,p,childProperties,false,namingPropertyDefinition);
}

private < M extends ConfigurationClient , P > ManagedObject < M > createNewManagedObject ( ManagedObjectDefinition < M , ? > d , ManagedObjectPath < M , ? > p , PropertyDefinition < P > namingPropertyDefinition , String name , Collection < PropertyException > exceptions ) { PropertySet childProperties = new PropertySet ( ) ; for ( PropertyDefinition < ? > pd : d . getAllPropertyDefinitions ( ) ) { try { createProperty ( childProperties , p , pd ) ; } catch ( PropertyException e ) { if ( exceptions != null ) { exceptions . add ( e ) ; } } } if ( namingPropertyDefinition != null ) { P value = namingPropertyDefinition . decodeValue ( name ) ; childProperties . setPropertyValues ( namingPropertyDefinition , Collections . singleton ( value ) ) ; } return newInstance ( d , p , childProperties , false , namingPropertyDefinition ) ; }
creates a new managed object with no active values , just default values .
