private void verifyWork ( Work work ) throws WorkException { Class < ? extends Work > workClass = work . getClass ( ) ; String className = workClass . getName ( ) ; if ( ! validatedWork . contains ( className ) ) { if ( isWorkMethodSynchronized ( workClass , RUN_METHOD_NAME ) ) throw new WorkException ( bundle . runMethodIsSynchronized ( className ) ) ; if ( isWorkMethodSynchronized ( workClass , RELEASE_METHOD_NAME ) ) throw new WorkException ( bundle . releaseMethodIsSynchronized ( className ) ) ; validatedWork . add ( className ) ; } }
Verify the given work instance .