public static List<String> getParentSemanticReference (Table table, Reference removeReference, boolean addChunk) {
List<String> list = new ArrayList<String>();
for (Reference reference : table.getParents()) {
if (!ReferenceUtils.isSimilarReference(reference, removeReference)) {
Table parent = reference.getForeignTable();
if (TableUtils.hasSemanticReference(parent)) {
SemanticReference sr = reference.getForeignTable().getSemanticReference();
for (String chunk : sr.getSemanticReferenceBeanPath()) {
String c = FormatUtils.getJavaNameVariable(reference.getLocalColumn().getAlias());
if (addChunk) c = c+"."+chunk;