Remove Java7 specific method