private static <T> T parseResponse(String response, String tag,
JsonObjectParser<T> parser) throws RedmineFormatException {
try {
return parser.parse(RedmineJSONParser.getResponseSingleObject(response, tag));
} catch (JSONException e) {
throw new RedmineFormatException(e);
}
}