TODO: avoid searching for fqn for java.* etc packages