if (m.find()) {
arrayType
.addType(getArrayType(m.group(), currentNamespace, offset));
type = m.replaceAll(""); //$NON-NLS-1$
} else if (type.endsWith(BRACKETS) && type.length() > 2) {
arrayType.addType(getArrayType(
type.substring(0, type.length() - 2), currentNamespace,
offset));
type = type.replaceAll(BRACKETS, ""); //$NON-NLS-1$
}
String[] typeNames = type.split(","); //$NON-NLS-1$