Added @deprecated to javadoc