String currentDestPath = associations[i].getDestinationPath();
String currentSourcePath = associations[i].getSourcePath();
String pathToAdd = (currentDestPath.equals(path)) ? (currentSourcePath) : (currentDestPath);
if (!associationTypeList.contains(currentType)) {
associationTypeList.add(currentType);
AssociationBean assoBean = new AssociationBean();
assoBean.setAssociationType(currentType);
assoBean.getDestinationPaths().add(pathToAdd);
beanList.add(assoBean);
}
else {
for (AssociationBean bean : beanList) {
if (bean.getAssociationType().equals(currentType)) {