@SuppressWarnings("unchecked")
@Override
public <T extends ODataCallback> T getCallback(final Class<? extends ODataCallback> callbackInterface) {
if (setDetailErrors == true) {
if (callbackInterface.isAssignableFrom(ODataErrorCallback.class)) {
return (T) new ODataJPAErrorCallback();
}
}
if (onJPAWriteContent != null) {
if (callbackInterface.isAssignableFrom(OnJPAWriteContent.class)) {