}
if (StringUtil.isEmpty(ext)) {
throw new FacesExceptionEx(new NullPointerException(), "Extension of file being uploaded may not be null");
}
FileService svc = new FileService();
FileCreationParameters p = new FileCreationParameters();
p.visibility = FileCreationParameters.Visibility.PUBLIC;
InputStream is;
try {
is = new FileInputStream(serverFile);
com.ibm.sbt.services.client.connections.files.File entry = svc.uploadFile(is,name, serverFile.length(),p.buildParameters());
}catch (ClientServicesException e) {
throw new FacesExceptionEx(e);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block