String content = type.getContentType();
Class repClass = type.getRepresentationClass();
if (content.equals("file")) {
if (repClass == File.class)
return new FileDisplayWidget(viewManager);
else if (repClass.isAssignableFrom(TransferableFile.class))
//return new TransferableFileWidget(
// new FileDisplayWidget(viewManager));
return new TransferableFileDisplayWidget(viewManager);
else