Merge "Update javadoc for getDeclaredInstances."