JiraClient client = context.getParentResourceComponent().getClient();
Map<String, RemoteProject> projectMap = client.getProjectMap();
for (String key : projectMap.keySet()) {
RemoteProject project = projectMap.get(key);
Configuration c = new Configuration();
c.put( new PropertySimple("projectKey", key));
c.put( new PropertySimple("projectId", project.getId()));
DiscoveredResourceDetails detail =
new DiscoveredResourceDetails(
context.getResourceType(),
project.getKey(),
project.getName(),
null,
project.getDescription(),
c,
null);
details.add(detail);