in src/main/java/org/apache/sling/testing/mock/jcr/MockNodeDefinition.java [69:79]
public NodeType getDefaultPrimaryType() {
NodeType nt = null;
if (this.defaultPrimaryTypeName != null) {
try {
nt = ntMgr.getNodeType(this.defaultPrimaryTypeName);
} catch (RepositoryException e) {
throw new RuntimeException("Getting default primary type failed.", e);
}
}
return nt;
}