Detect resource class from signature.