long length = currentResource.getGetContentLength();
// getcontentlength
longFormat[1] = new Long(length).toString();
// resourcetype
ResourceTypeProperty resourceTypeProperty =
currentResource.getResourceType();
// getcontenttype
String getContentType =
currentResource.getGetContentType();
longFormat[2] = resourceTypeProperty.isCollection() ?
"COLLECTION" : getContentType ;
Date date = new Date(currentResource.getGetLastModified());
// getlastmodified
// Save the dummy what if failed.
longFormat[3] = (date == null) ? "-- -- ----" :