// With specified content type
if (getContenttype() != null) {
WGContentType contentType = getTMLContext().db().getContentType(getContenttype());
if (contentType != null) {
return contentType.mayCreateContent() && contentType.mayCreateChildEntry(doc);
}
else {
addWarning("Contenttype '" + getContenttype() + "' could not be found in database '" + getTMLContext().db().getDbReference() + "'.");
return false;
}