Your error message is missing its head, the text on the top that states what kind of error message is being thrown. I'm going to guess that it's an UnsupportedOperationException and it's being thrown because your code is telling java to throw it. What would you expect a method such as this to do:
private double inStock() {
throw new UnsupportedOperationException("Not yet implemented");
}
?