Update getAdaptationForType function
Created by: nicosang
as explain in issue #1928 (closed), the getAdaptationForType function returns a mistake.....
Created by: nicosang
as explain in issue #1928 (closed), the getAdaptationForType function returns a mistake.....