});
}
public void getCurrentRoles(final FormBuilderService.RolesResponseHandler handler) {
Resource resource = new Resource(URLBuilder.getCurrentRolesURL(this.contextPath));
resource.get().send(new TextCallback() {
@Override
public void onSuccess(Method method, String response) {
if (method.getResponse().getStatusCode() == Response.SC_OK) {
List<String> roles = helper.readRoles(response);
handler.onResponse(roles);