Moved code to gda specific plugin for license reasons.