* @inheritDoc()
*/
@Override
public String uploadContent(File file) throws IOException {
String fileName = file.getName();
ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();
ContentRepository repo = registry.getRepository(loginInfo);
ContentCollection userRoot;
// First try to find the resource, if it exists, then simply upload the
// new bits. Otherwise create the resource and upload the new bits
try {