}
//================================================ Helper Methods ==================================================
private Pattern[] resolvePackageScanPatterns(JClassType type) {
BeanScan beanScan = type.getAnnotation(BeanScan.class);
String[] packages = beanScan.packages();
PackageResolver packageResolver = beanScan.resolver();
Pattern[] patterns = new Pattern[packages.length];
int i = 0;
for (String packageExpression : packages) {
patterns[i++] = PatternUtils.resolvePattern(packageExpression, packageResolver);
}