} else if (type.getName().equals(CAS.TYPE_NAME_STRING_ARRAY)) {
fs = document.getCAS().createStringArrayFS(arraySize);
} else if (type.getName().equals(CAS.TYPE_NAME_FS_ARRAY)) {
fs = document.getCAS().createArrayFS(arraySize);
} else {
throw new CasEditorError("Unkown array type!");
}
}
else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_ANNOTATION), type)) {
// get begin of selection from editor, if any