MiscUtils has loadProClass that does this and provide a nice error message if it's community.