class TargetTypesServiceImpl implements TargetTypesService {

	@Override
	public Map<String, Object> getAttributeValues(AttributeValuesRequest attributeValuesRequest) {
		try {
			Response response = invokeAPI("GET", attributeValuesRequest.getIndex(), attributeValuesRequest.getPayload());
			if(response != null) {
				String attributeValues = EntityUtils.toString(response.getEntity());
				return mapper.readValue(attributeValues, new TypeReference<Map<String, Object>>(){});
			}
		} catch (Exception exception) {
			log.error(UNEXPECTED_ERROR_OCCURRED, exception);
		}
		return Maps.newHashMap();
	}

}