* The hard-coded URL should be in a property file. Also this is pretty TeraGrid-specific. Foreseeable
* to have different subclasses with different mechanisms (OSG, UNICORE, etc).
*/
private void populateProjectNameItems() {
if(super.getContext().getHttpsClient()!=null){
HTTPSClient httpsClient = super.getContext().getHttpsClient();
try {
String content = httpsClient.getTextFromURL("https://info.teragrid.org:8444/web-apps/json/profile-v1/project",super.getContext().getCredentials().getMyproxyUserName(),super.getContext().getCredentials().getMyproxyPassword());
JSONArray jsonArray = new JSONArray(content);
for(int i=0;i<jsonArray.length();i++){
JSONObject jsonObject = jsonArray.getJSONObject(i);
projectNameItems.add(new SelectItem(jsonObject.get("projectId")));
}