private List<String> getListOfStyles() {

		List<String> styles = new ArrayList<String>();
	        
	    try
	    {
	
        	String baseURL = Options.getInstance().getProperty("cloudURL");
        	URI rURI = new URI("http", null, baseURL, 80, "/styles/", null, null);
	    	URL url = rURI.toURL();
	    	//URL url = new URL(baseURL+"/styles/");
	    	InputStream response = url.openStream();
	    	DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

	        dbf.setValidating(false);
	        dbf.setIgnoringComments(false);
	        dbf.setIgnoringElementContentWhitespace(true);
	        dbf.setNamespaceAware(true);
	        // dbf.setCoalescing(true);
	        // dbf.setExpandEntityReferences(true);

	        DocumentBuilder db = null;
	        db = dbf.newDocumentBuilder();

	        Document readXML = db.parse(response);
	        NodeList childNodes = readXML.getElementsByTagName("style");
	        
	        
	        Debug.print("Loading Styles from online: "+ childNodes.getLength());
	      
	        for(int x = 0; x < childNodes.getLength(); x++ ) {
	        	
	        	
	        	Node child = childNodes.item(x);
		        
	        	// generate the style list
	        	Debug.print("Style: " + child.getTextContent());
	        	if(child.getTextContent() != null) {
	        		styles.add(child.getTextContent());
	        	}
	        }		
	    }
	    catch (Exception e)
	    {
	        e.printStackTrace();
	
	    }
	    return styles;
	}