public static boolean create(String resourceId) throws ResourceDuplicationException,InvalidParametersException{
if (resourceId == null || resourceId.trim().equals("")) throw new InvalidParametersException();
IWidgetService ws;
try {
ws = getWidgetService(resourceId);
throw new ResourceDuplicationException();
} catch (ResourceNotFoundException e) {
IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
ws = persistenceManager.newInstance(IWidgetService.class);
ws.setServiceName(resourceId);
return persistenceManager.save(ws);