temporary fix for yaml/java-type resolution, and notes on the better solution