final String[] name = RepositoryUtilities.split(identifier, "/");
if (RepositoryUtilities.isExistsEntity(repository, name) == false)
{
if (failOnMissingData)
{
throw new UnrecognizedLoaderException("This bundle data does not point to readable content: " + identifier);
}
else
{
this.contentItem = null;
}
}
else
{
final ContentEntity contentEntity = RepositoryUtilities.getEntity(repository, name);
if (contentEntity instanceof ContentItem == false)
{
if (failOnMissingData)
{
throw new UnrecognizedLoaderException("This bundle data does not point to readable content. Content entity is not a ContentItem");
}
else
{
this.contentItem = null;
}