// Probe for link only if we KNOW it's not an attribute but "plain" content
final boolean isAttribute = uid.getBooleanAttributeValue(IsItemAttributeMetacontentAttribute.class);
final boolean isLink = !isAttribute && getLinkPersister().isLinkContent(fileContent);
if (isLink) {
try {
DefaultStorageLinkItem link =
new DefaultStorageLinkItem(repository, request, target.canRead(), target.canWrite(),
getLinkPersister().readLinkContent(fileContent));
repository.getAttributesHandler().fetchAttributes(link);
link.setModified(target.lastModified());
link.setCreated(target.lastModified());
result = link;
repository.getAttributesHandler().touchItemLastRequested(System.currentTimeMillis(), link);
}
catch (NoSuchRepositoryException e) {