public Widget publishWidgetUrlToWookie(String widgetStrUrl){
Widget widget = null;
File tempWgtFile = null;
try {
if(adminUsername.equals(null) || adminUsername.equals("") || adminPassword.equals(null) || adminPassword.equals("")){
throw new WookieConnectorException("Either the wookie username or password is not defined in portal.properties", null);
}
connectorService = getWookieConnectorService(wookieServerUrl, wookieApiKey, "");
// TODO - replace code with line below when bundled with wookie 0.13.0
// wookie-0.13.0 can accept postWidget with a url parameter as well as file parameter
//org.apache.wookie.connector.framework.Widget wookieWidget = connectorService.postWidget(widgetUrl, adminUsername, adminPassword);