private void checkRefAgainstRefType ( Ref ref , RefType refType ) { if ( ref != null && ref . getRefType ( ) == refType ) { throw new IllegalArgumentException ( "Invalid ref type passed as argument to checkout" ) ; } }
This is just a test method for verifying that a given ref is not of refType provided as one of the parameters .