changing file name not the file extention

Hello experts,
I need to solve the problem stated below:
1.have to search for " operator.java" file and rename it to as OPERATOR.java
2.Also I have to change the following line inside the file:
public class operator----->public class OPERATOR

the only thing that i can think is ,I have to use sed and find but need some hints.

Please give me some ideas.
Thanks.

find /path/to/files -name operator.java |\
while read file
do
     sed 's/public class operator/public class OPERATOR/' $file > tmpfile
     newfile=$( echo "$file" | sed 's/operator/OPERATOR/' )
     mv tmpfile $newfile
done

start with something like this

Thanks for your great kindness.I am almost done but may have some difficulties later on but I think I will be able to solve that.It was a very tiny part of my project that made me almost mad.Thanks again.