+ /**
+ * Checks if the given operation is allowed on the resource.
+ *
+ * @param <T>
+ * Type of resource
+ * @param aResource
+ * Resource.
+ * @param aOperation
+ * Operation.
+ * @return Resource passed in in case access is allowed
+ * @throws AuthorizationException
+ * In case access is denied.
+ */