code: private void fillCache()
     {
        Collection<NodeTypeData> ntTypes = registry.getAllNodeTypes();
        for (NodeTypeData nodeTypeData : ntTypes)
        {
           nodeTypeRegistered(nodeTypeData.getName());
        }
     }
docs: Initially fills the cache of this registry with property type definitions
  from the {@link org.apache.jackrabbit.core.nodetype.NodeTypeRegistry}.