protected JcrNodeType findTypeInMapOrList ( Name typeName , Collection < JcrNodeType > pendingList ) { for ( JcrNodeType pendingNodeType : pendingList ) { if ( pendingNodeType . getInternalName ( ) . equals ( typeName ) ) { return pendingNodeType ; } } return nodeTypes . get ( typeName ) ; }
Finds the named type in the given collection of types pending registration if it exists else returns the type definition from the repository