List<ModelNode> payload = response.get("result").asList();
List<ProfileRecord> records = new ArrayList<ProfileRecord>(payload.size());
for(int i=0; i<payload.size(); i++)
{
ProfileRecord record = factory.profile().as();
record.setName(payload.get(i).asString());
records.add(record);
}
ProfileStoreImpl.this.cachedRecords = records;
callback.onSuccess(records);