private ServerGroupRecord model2ServerGroup(String groupName, ModelNode model) {
        ServerGroupRecord record = factory.serverGroup().as();

        record.setName(groupName);
        record.setProfileName(model.get("profile").asString());
        record.setSocketBinding(model.get("socket-binding-group").asString());

        Jvm jvm = ModelAdapter.model2JVM(factory, model);

        if(jvm!=null)
            jvm.setInherited(false);  // on this level they can't inherit from anyone

        record.setJvm(jvm);

        List<PropertyRecord> propertyRecords = ModelAdapter.model2Property(factory, model);
        record.setProperties(propertyRecords);

        return record;
    }
private ServerGroupRecord model2ServerGroup ( String groupName , ModelNode model ) { ServerGroupRecord record = factory . serverGroup ( ) . as ( ) ; record . setName ( groupName ) ; record . setProfileName ( model . get ( "profile" ) . asString ( ) ) ; record . setSocketBinding ( model . get ( "socket-binding-group" ) . asString ( ) ) ; Jvm jvm = ModelAdapter . model2JVM ( factory , model ) ; if ( jvm != null ) jvm . setInherited ( false ) ; record . setJvm ( jvm ) ; List < PropertyRecord > propertyRecords = ModelAdapter . model2Property ( factory , model ) ; record . setProperties ( propertyRecords ) ; return record ; }
Turns a server group DMR model into a strongly typed entity
@param groupName
@param model
@return