if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_TIME_STAMP))
{
result.put(URIConverter.ATTRIBUTE_TIME_STAMP, resource.getLocalTimeStamp());
}
ResourceAttributes resourceAttributes = null;
if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_READ_ONLY))
{
resourceAttributes = resource.getResourceAttributes();
result.put(URIConverter.ATTRIBUTE_READ_ONLY, resourceAttributes.isReadOnly());
}
if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_ARCHIVE))
{
if (resourceAttributes == null)
{
resourceAttributes = resource.getResourceAttributes();
}
result.put(URIConverter.ATTRIBUTE_ARCHIVE, resourceAttributes.isArchive());
}
if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_EXECUTABLE))
{
if (resourceAttributes == null)
{
resourceAttributes = resource.getResourceAttributes();
}
result.put(URIConverter.ATTRIBUTE_EXECUTABLE, resourceAttributes.isExecutable());
}
if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_HIDDEN))
{
if (resourceAttributes == null)
{
resourceAttributes = resource.getResourceAttributes();
}
result.put(URIConverter.ATTRIBUTE_HIDDEN, resourceAttributes.isHidden());
}
if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_DIRECTORY))
{
if (resourceAttributes == null)
{