try
{
json.put( "status", true ); //$NON-NLS-1$
json.put( "details", details ); //$NON-NLS-1$
final Repository repositories[] = admin.listRepositories();
for ( int i = 0; repositories != null && i < repositories.length; i++ )
{
json.append( "repositories", new JSONObject() //$NON-NLS-1$
.put( "lastModified", repositories[i].getLastModified() ) //$NON-NLS-1$
.put( "name", repositories[i].getName() ) //$NON-NLS-1$