public void setAttribute(final String attrName, final Object value)
throws FileSystemException
{
if (!fileObject.getType().hasAttributes())
{
throw new FileSystemException("vfs.provider/set-attribute-no-exist.error", new Object[]{attrName, fileObject});
}
try
{
fileObject.doSetAttribute(attrName, value);
}
catch (final Exception e)
{
throw new FileSystemException("vfs.provider/set-attribute.error", new Object[]{attrName, fileObject}, e);
}
if (attrs != null)
{
attrs.put(attrName, value);