* @throws java.lang.IllegalStateException - The Container throws the
* exception if the instance is not allowed to use this method (i.e.
* the instance is of a bean with bean-managed transactions).
*/
public boolean getRollbackOnly() throws IllegalStateException {
OperationState operationState = getFactory().getOperationState();
if (DEPENDENCY_INJECTION == operationState || LIFECYCLE_CALLBACK_INTERCEPTOR == operationState
|| AFTER_COMPLETION == operationState) {
throw new IllegalStateException("The getRollbackOnly() method cannot be called within the operation state '"
+ operationState + "'.");
}