Add a method in the base class which returns the tag. Then iterate over your structure and get the tag for each subtype.
public class SherlockListFragment{
public String getTag(){
return TAG;
}
}
You don't need to determine the exact subtype of class. Any time you start encountering odd problems like this, I'd suggest reworking design first rather than finding a work around.