String actionName = action.value();
actionNamespace = StringUtils.contains(actionName, "/") ? StringUtils.substringBeforeLast(actionName, "/") : StringUtils.EMPTY;
}
// Next grab the parent annotation from the class
ParentPackage parent = AnnotationUtils.findAnnotation(actionClass, ParentPackage.class);
String parentName = null;
if (parent != null) {
if (LOG.isTraceEnabled()) {
LOG.trace("Using non-default parent package from annotation of [#0]", parent.value());
}
parentName = parent.value();
}
// Finally use the default
if (parentName == null) {
parentName = defaultParentPackage;